<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
  <title>添加栏目</title>
  <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.3.1/css/bootstrap.min.css" rel="stylesheet">
  <style>
    /* 自定义样式：设置输入框宽度为父容器的 50% */
    .half-width {
      width: 50%;
    }
  </style>
</head>
<body>
<h1>添加栏目</h1>
<form action="${pageContext.request.contextPath}/lanmu/add" method="post">
  <label for="name">栏目名称:</label>
  <input type="text" class="form-control half-width" id="name" name="name" required><br><br>
  <label for="lan_order">栏目顺序:</label>
  <input type="number" class="form-control half-width" id="lan_order" name="lan_order" required><br><br>
  <input type="submit" value="提交">
</form>
<script src="https://cdn.bootcdn.net/ajax/libs/bootstrap/5.3.1/js/bootstrap.bundle.min.js"></script>
</body>
</html>

